home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / mactr035.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1996-06-27  |  2KB  |  52 lines

  1. /*
  2.  * MainActor/2 installation program, (c) 1996 by MainConcept, GbR
  3.  */
  4.  
  5. mv2assoc = ';ASSOCFILTER=*.AVI,*.MOV,*.FLI,*.FLC,*.PCX,*.IFF,*.DL'
  6.  
  7. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  8. call SysLoadFuncs
  9.  
  10. say "Creating MainActor/2 folder and objects on desktop ..."
  11.  
  12. current = directory()
  13.  
  14. /* Create MainActor/2 folder */
  15.  
  16. rc = stream('ma2fldr.ico','c','query exists')
  17. title="MainActor/2"
  18. classname='WPFOLDER'
  19. location='<WP_DESKTOP>'
  20. setup='OBJECTID=<MA/2_Folder>;OPEN=DEFAULT'
  21. if rc \= '' then setup = setup';ICONFILE='rc
  22. result=SysCreateObject(classname,title,location,setup,replace)
  23.  
  24. /* Creating MainActor/2 object */
  25.  
  26. title = "MainActor/2"
  27. classname = 'WPProgram'
  28. location = '<MA/2_Folder>'
  29. setup = 'OBJECTID=<MA/2>;EXENAME='current'\MActr.EXE;STARTUPDIR='current
  30. result=SysCreateObject(classname,title,location,setup,replace)
  31.  
  32. /* Creating MainView/2 object */
  33.  
  34. title = "MainView/2"
  35. classname = 'WPProgram'
  36. location = '<MA/2_Folder>'
  37. setup = 'OBJECTID=<MAVIEW/2>;EXENAME='current'\mainview.exe;STARTUPDIR='current''mv2assoc
  38. result=SysCreateObject(classname,title,location,setup,replace)
  39.  
  40. /* Create the ModulePath Entry in the User Ini */
  41.  
  42. SysIni('USER', 'MainView/2', 'ModulePath', current)
  43.  
  44. /* Creating MainActor/2 documentation object */
  45.  
  46. title = "MainActor/2 Documentation"
  47. classname = 'WPProgram'
  48. location = '<MA/2_Folder>'
  49. setup = 'OBJECTID=<MADOCU/2>;EXENAME=view.exe;PARAMETERS='current'\MActr.inf'
  50. result=SysCreateObject(classname,title,location,setup,replace)
  51.  
  52.